package csnet.openflow.component.switchx.flowEntryDelay;

import csnet.openflow.component.switchx.flowTable.FlowTable;

public class LinearFlowEntryDelay extends AbstractFlowEntryDelay {
    private int a;
    private int b;

    public LinearFlowEntryDelay(FlowTable flowTable, int bufferSize,
            int a, int b) {
        super(flowTable, bufferSize);
        this.a = a;
        this.b = b;
    }

    @Override
    protected long getWaitingTime() {
        return a * flowTable.size() + b;
    }

}
